package org.snowin.utils;

import org.openqa.selenium.WebDriver;

import java.io.File;
import java.util.HashMap;


public class GlobalInfo {
/*
     Next try to locate it using the native library name and
     the architecture-specific path name.  e.g. if user
     requested a load for "foo" on Solaris SPARC 5.7 we try to
     load "SunOS/sparc/5.7/lib/libfoo.so" from the JAR file.

*/

    //    <dt>file.separator       <dd>File separator ("/" on Unix)
    public static String FILE_SEPARATOR = "file.separator";
    public static String OS_SYSTEM_NAME = "os.name";
    public static String ConfigXMLName = "config";
    public static String CaseXMLName = "caselist.cfg.xml";
    public static String rootPath = "";
    public static String pcHostName;
    public static String pcIP;
    public static String os = System.getProperty(OS_SYSTEM_NAME).toLowerCase();
    public static boolean isOnlineTest;
    public static WebDriver currentWebDriver;
    public static String HostName;
    public static HashMap<String, String> varibles = new HashMap();


    public static String getFileSeparator() {
        String sp = System.getProperty(FILE_SEPARATOR);
        return sp;
    }

    public static String getRootPath(){
        String LrootPath = null ;
        if (rootPath ==null || rootPath.isEmpty()){
         LrootPath =  new File("").getAbsolutePath();
        }
        return  LrootPath;
    }
}
